//
//  XMLExhibitorCollectOrAppointment.m
//  ppkc2016
//
//  Created by 拼凑的断音 on 16/4/19.
//  Copyright © 2016年 拼凑的断音. All rights reserved.
//

#import "XMLExhibitorCollectOrAppointment.h"
#import "XXTool.h"

@implementation XMLExhibitorCollectOrAppointment

+(void)requestExhibitorCollectAndOrderStatusWithExID:(NSString *)exID comletion:(void (^)(BOOL, XMLExhibitorCollectOrAppointment *))block
{
    [DKHTTPRequest sendNewDataWithShortUrl:@"electronic_catalogue_exhibitordetail"
                                  Param:[XXTool formatStringWithLanguage:[NSString stringWithFormat:@"userid=%@&passwd=%@&exhibitorid=%@",[UserInfo shareUserInfo].userID,[UserInfo shareUserInfo].userPassword,exID]]
                             ImageArray:nil
                                TimeOut:10
                             Completion:^BOOL(NSMutableDictionary *serverDic, DKHTTPResponseType bufferType) {
                                 if ([[serverDic objectForKey:@"code"] intValue]==200)
                                 {
                                     if (block)
                                     {
                                         block(YES,[XMLExhibitorCollectOrAppointment modelWithDictionary:serverDic]);
                                     }
                                 }
                                 else
                                 {
                                     if (block)
                                     {
                                         block(NO,nil);
                                     }
                                 }
                                 return YES;
                             } IsBuffering:NO
                      IsNeedReplaceWrap:NO
                        IsUseUpLoadHead:NO];
}

@end
